package data.platform.common.stream.valueobjects;

public enum RuleState {
    ACTIVE("激活"),
    PAUSE("停止"),
    DELETE("删除");

    private String name;

    RuleState(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static RuleState fromString(String name) {
        for (RuleState b : RuleState.values()) {
            if (b.name.equals(name)) {
                return b;
            }
        }
        return null;
    }
}
